# -*- coding: utf-8 -*-
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template
from google.appengine.ext.webapp.util import run_wsgi_app
from helper import *

class Index(I18NRequestHandler):
    def get(self):
        cookie_django_language = self.request.get('cookie_django_language', '')
        if cookie_django_language:
	        if cookie_django_language == 'unset':
		        del self.request.COOKIES['django_language']
	        else:
		        self.request.COOKIES['django_language'] = cookie_django_language
        self.reset_language()

        self.response.out.write(template.render('index.html',{}, debug=True))
        
